// stores/product.ts
import { defineStore } from 'pinia';
import type { Product, Category, SearchParams } from '@/types';


export const useProductStore = defineStore('product', {
  state: () => ({
    products: [] as Product[],
    categories: [] as Category[],
    currentProduct: null as Product | null
  }),
  actions: {
    async fetchProducts(params: SearchParams) {},
    async fetchProductDetail(id: string) {},
    async fetchCategories() {}
  }
});